package com.example.blog.base;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.blog.entity.Query;
import org.springframework.stereotype.Component;

@Component
public class BaseImpl {

    public Page getListByQueryPage(BaseService baseService, Query query) {
        return baseService.getListByQueryPage(query);
    }

    public int updateByEntity(BaseService baseService, BaseEntity baseEntity) {
        return baseService.updateByEntity(baseEntity);
    }

    public int insertByEntity(BaseService baseService, BaseEntity baseEntity) {
        return baseService.insertByEntity(baseEntity);
    }
}
